<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateYaoUserInfosTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('yao_user_infos', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->bigInteger('member_id')->default(0)->comment('用户中心的id');
            $table->string('member_name')->default('')->comment('用户中心的姓名');
            $table->string('phone_number')->default('')->comment('用户中心的手机');
            $table->string('member_email')->default('')->comment('用户中心的邮箱');
            $table->integer('member_sex')->default(0)->comment('用户中心的性别');
            $table->integer('member_age')->default(0)->comment('用户中心的年龄');
            $table->string('member_address')->default(0)->comment('用户中心的地区');
            $table->string('member_home_address')->default(0)->comment('用户中心的家庭地址');
            $table->integer('member_status')->default(1)->comment('用户中心的状态');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('yao_user_infos');
    }
}
